package com.piper.core.converter;

import com.xiaoleilu.hutool.date.DateUtil;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

public class StringToDateConverter implements Converter<String, Date> {

    @Override
    public Date convert(String dateString) {
        return DateUtil.parse(dateString);
    }

}
